//  登录
import Login from "../pages/login.js";
import studentsRoutes from "./students.js"
// 注册
import Reg from "../pages/reg.js";
import info from "../pages/info/info.js";


// 学生系统版本
// import Student from "../pages/students/index.js";
var routes = {
    '/login': {
        on() {
            new Login();
        }
    },
    '/reg': {
        on() {
            new Reg();
        }
    },
    '/info': {
        
        on() {
            new info(); 
        },
        ...studentsRoutes
     
    },

    


   
};

var router = Router(routes).configure({ recurse: 'forward' });
export default {
    Inint: () => {
        location.hash = location.hash||`#/login`
        router.init()

    }
}